// 过渡动画
.slide-up-enter-active,
.slide-up-leave-active {
    transition: all 0.3s ease;
}

.slide-up-enter-from,
.slide-up-leave-to {
    opacity: 0;

    .update-drawer {
        transform: translateY(100%);
    }
}

// 遮罩层
.update-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

// 抽屉主体
.update-drawer {
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

// 拖动指示器
.drawer-handle {
    padding: 12px 0;
    display: flex;
    justify-content: center;
    background: white;
    cursor: pointer;

    .handle-bar {
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
    }
}

// 内容区域
.update-content {
    padding: 0 40px 40px;
    overflow-y: auto;
    max-height: calc(85vh - 40px);
}

// 图标
.update-icon {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;

    .icon-circle {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        animation: pulse 2s ease-in-out infinite;

        .el-icon {
            animation: rotate 4s linear infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            will-change: transform;
        }
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

// 标题
.update-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 20px;
    text-align: center;
}

// 版本信息
.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f5f7fa;
    border-radius: 12px;
}

.version-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;

    .label {
        font-size: 11px;
        color: #86868b;
        text-transform: uppercase;
    }

    .value {
        font-size: 16px;
        font-weight: 600;
        color: #1d1d1f;
    }

    &.new .value {
        color: #667eea;
    }
}

.version-arrow {
    color: #86868b;
    font-size: 18px;
}

// 更新详情
.update-details {
    margin-bottom: 24px;

    h3 {
        font-size: 15px;
        font-weight: 600;
        color: #1d1d1f;
        margin: 0 0 12px;
    }
}

.update-list {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 6px 0;
        font-size: 13px;
        color: #6e6e73;
        line-height: 1.5;

        .check-icon {
            color: #67c23a;
            font-size: 14px;
            flex-shrink: 0;
            margin-top: 1px;
        }
    }
}

// 进度条
.update-progress {
    margin-bottom: 20px;

    .progress-text {
        margin-top: 10px;
        font-size: 13px;
        color: #667eea;
        font-weight: 500;
        text-align: center;
    }
}

// 操作按钮
.update-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;

    .el-button {
        flex: 1;
        border-radius: 12px;
        font-weight: 500;
        height: 48px;
    }

    .btn-later {
        background: #f5f7fa;
        border-color: #f5f7fa;
        color: #6e6e73;

        &:hover {
            background: #e5e7eb;
            border-color: #e5e7eb;
        }
    }

    .btn-update {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
    }
}

// 响应式
@media (max-width: 600px) {
    .update-drawer {
        max-width: 100%;
        border-radius: 20px;
    }

    .update-content {
        padding: 0 24px 24px;
    }

    .update-title {
        font-size: 20px;
    }

    .version-info {
        padding: 12px;
    }

    .version-badge .value {
        font-size: 14px;
    }
}
